#include"head.h"
int WINAPI WinMain(
	HINSTANCE hInstance,
	HINSTANCE hPrevInstance,
	LPSTR nCmdLine,
	int nCmdShow
)
{
	const wchar_t *lpszClassName = L"main";
	const wchar_t *lpszMenuName = L"main";
	const wchar_t *lpszWindowName = L"main";
	if (!InitClass(lpszClassName, lpszMenuName, hInstance))
		return 0;
	HWND hWnd = CreateWindow(lpszClassName, lpszWindowName, WS_OVERLAPPEDWINDOW|WS_HSCROLL|WS_VSCROLL, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, nullptr, nullptr, hInstance, nullptr);
	ShowWindow(hWnd, nCmdShow);
	UpdateWindow(hWnd);
	static MSG msg;
	while (GetMessage(&msg, nullptr, 0, 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	return 0;
}